
#define MAX_LEN 100
#include <stdio.h>
#include <string.h>

typedef struct {
    char data[MAX_LEN];
    int length;
} String;

//初始化串
void initString(String *str) {
    str->length = 0;
    str->data[0] = '\0';
}

//复制操作
void AssignString(String *str,const char *content) {
    int len = strlen(content);
    if (len >= MAX_LEN) {
        printf("字符串过长，赋值失败！\n");
        return;
    }
    strcpy(str->data, content);
    str->length = len;
}
//
//判断两个串是否相等
int main() {
    char data[10];
    for (int i = 0; i < 10; i++) {
        data[i] = "0123456789"[i];

    }
    printf("%llu",strlen(data));
    printf("%s\n",data);
}